Skip to content

})} @)}

LiveView.ToProperty(Action>) method

Defined in

Type: LiveView Namespace: ReactiveList.Reactive.Queries Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public LiveView<T> ToProperty(Action<ReadOnlyObservableCollection<T>> propertySetter)

  2. public LiveView<T> ToProperty(out ReadOnlyObservableCollection<T> collection)

1. Overload

public LiveView<T> ToProperty(Action<ReadOnlyObservableCollection<T>> propertySetter)

View source (opens in a new tab)

Summary: Assigns the items collection to a property using the specified setter action.

Parameters

NameTypeDescription
propertySetterAction> (opens in a new tab)An action that sets a property to the read-only observable collection of items.

Returns: LiveView -- The current instance, to enable method chaining.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)Thrown if propertySetter is null.

2. Overload

public LiveView<T> ToProperty(out ReadOnlyObservableCollection<T> collection)

View source (opens in a new tab)

Summary: Returns the current instance and provides the read-only observable collection of items.

Parameters

NameTypeDescription
out collectionReadOnlyObservableCollection (opens in a new tab)When this method returns, contains the read-only observable collection of items.

Returns: LiveView -- The current instance.